package com.ytjj.qmyx.mall.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ComplaintsRecordsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ComplaintsRecordsExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andComplaintIdIsNull() {
            addCriterion("complaint_id is null");
            return (Criteria) this;
        }

        public Criteria andComplaintIdIsNotNull() {
            addCriterion("complaint_id is not null");
            return (Criteria) this;
        }

        public Criteria andComplaintIdEqualTo(String value) {
            addCriterion("complaint_id =", value, "complaintId");
            return (Criteria) this;
        }

        public Criteria andComplaintIdNotEqualTo(String value) {
            addCriterion("complaint_id <>", value, "complaintId");
            return (Criteria) this;
        }

        public Criteria andComplaintIdGreaterThan(String value) {
            addCriterion("complaint_id >", value, "complaintId");
            return (Criteria) this;
        }

        public Criteria andComplaintIdGreaterThanOrEqualTo(String value) {
            addCriterion("complaint_id >=", value, "complaintId");
            return (Criteria) this;
        }

        public Criteria andComplaintIdLessThan(String value) {
            addCriterion("complaint_id <", value, "complaintId");
            return (Criteria) this;
        }

        public Criteria andComplaintIdLessThanOrEqualTo(String value) {
            addCriterion("complaint_id <=", value, "complaintId");
            return (Criteria) this;
        }

        public Criteria andComplaintIdLike(String value) {
            addCriterion("complaint_id like", value, "complaintId");
            return (Criteria) this;
        }

        public Criteria andComplaintIdNotLike(String value) {
            addCriterion("complaint_id not like", value, "complaintId");
            return (Criteria) this;
        }

        public Criteria andComplaintIdIn(List<String> values) {
            addCriterion("complaint_id in", values, "complaintId");
            return (Criteria) this;
        }

        public Criteria andComplaintIdNotIn(List<String> values) {
            addCriterion("complaint_id not in", values, "complaintId");
            return (Criteria) this;
        }

        public Criteria andComplaintIdBetween(String value1, String value2) {
            addCriterion("complaint_id between", value1, value2, "complaintId");
            return (Criteria) this;
        }

        public Criteria andComplaintIdNotBetween(String value1, String value2) {
            addCriterion("complaint_id not between", value1, value2, "complaintId");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(Integer value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(Integer value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(Integer value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(Integer value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(Integer value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<Integer> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<Integer> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(Integer value1, Integer value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneIsNull() {
            addCriterion("payer_phone is null");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneIsNotNull() {
            addCriterion("payer_phone is not null");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneEqualTo(String value) {
            addCriterion("payer_phone =", value, "payerPhone");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneNotEqualTo(String value) {
            addCriterion("payer_phone <>", value, "payerPhone");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneGreaterThan(String value) {
            addCriterion("payer_phone >", value, "payerPhone");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("payer_phone >=", value, "payerPhone");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneLessThan(String value) {
            addCriterion("payer_phone <", value, "payerPhone");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneLessThanOrEqualTo(String value) {
            addCriterion("payer_phone <=", value, "payerPhone");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneLike(String value) {
            addCriterion("payer_phone like", value, "payerPhone");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneNotLike(String value) {
            addCriterion("payer_phone not like", value, "payerPhone");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneIn(List<String> values) {
            addCriterion("payer_phone in", values, "payerPhone");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneNotIn(List<String> values) {
            addCriterion("payer_phone not in", values, "payerPhone");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneBetween(String value1, String value2) {
            addCriterion("payer_phone between", value1, value2, "payerPhone");
            return (Criteria) this;
        }

        public Criteria andPayerPhoneNotBetween(String value1, String value2) {
            addCriterion("payer_phone not between", value1, value2, "payerPhone");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailIsNull() {
            addCriterion("complaint_detail is null");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailIsNotNull() {
            addCriterion("complaint_detail is not null");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailEqualTo(String value) {
            addCriterion("complaint_detail =", value, "complaintDetail");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailNotEqualTo(String value) {
            addCriterion("complaint_detail <>", value, "complaintDetail");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailGreaterThan(String value) {
            addCriterion("complaint_detail >", value, "complaintDetail");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailGreaterThanOrEqualTo(String value) {
            addCriterion("complaint_detail >=", value, "complaintDetail");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailLessThan(String value) {
            addCriterion("complaint_detail <", value, "complaintDetail");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailLessThanOrEqualTo(String value) {
            addCriterion("complaint_detail <=", value, "complaintDetail");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailLike(String value) {
            addCriterion("complaint_detail like", value, "complaintDetail");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailNotLike(String value) {
            addCriterion("complaint_detail not like", value, "complaintDetail");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailIn(List<String> values) {
            addCriterion("complaint_detail in", values, "complaintDetail");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailNotIn(List<String> values) {
            addCriterion("complaint_detail not in", values, "complaintDetail");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailBetween(String value1, String value2) {
            addCriterion("complaint_detail between", value1, value2, "complaintDetail");
            return (Criteria) this;
        }

        public Criteria andComplaintDetailNotBetween(String value1, String value2) {
            addCriterion("complaint_detail not between", value1, value2, "complaintDetail");
            return (Criteria) this;
        }

        public Criteria andComplaintStateIsNull() {
            addCriterion("complaint_state is null");
            return (Criteria) this;
        }

        public Criteria andComplaintStateIsNotNull() {
            addCriterion("complaint_state is not null");
            return (Criteria) this;
        }

        public Criteria andComplaintStateEqualTo(String value) {
            addCriterion("complaint_state =", value, "complaintState");
            return (Criteria) this;
        }

        public Criteria andComplaintStateNotEqualTo(String value) {
            addCriterion("complaint_state <>", value, "complaintState");
            return (Criteria) this;
        }

        public Criteria andComplaintStateGreaterThan(String value) {
            addCriterion("complaint_state >", value, "complaintState");
            return (Criteria) this;
        }

        public Criteria andComplaintStateGreaterThanOrEqualTo(String value) {
            addCriterion("complaint_state >=", value, "complaintState");
            return (Criteria) this;
        }

        public Criteria andComplaintStateLessThan(String value) {
            addCriterion("complaint_state <", value, "complaintState");
            return (Criteria) this;
        }

        public Criteria andComplaintStateLessThanOrEqualTo(String value) {
            addCriterion("complaint_state <=", value, "complaintState");
            return (Criteria) this;
        }

        public Criteria andComplaintStateLike(String value) {
            addCriterion("complaint_state like", value, "complaintState");
            return (Criteria) this;
        }

        public Criteria andComplaintStateNotLike(String value) {
            addCriterion("complaint_state not like", value, "complaintState");
            return (Criteria) this;
        }

        public Criteria andComplaintStateIn(List<String> values) {
            addCriterion("complaint_state in", values, "complaintState");
            return (Criteria) this;
        }

        public Criteria andComplaintStateNotIn(List<String> values) {
            addCriterion("complaint_state not in", values, "complaintState");
            return (Criteria) this;
        }

        public Criteria andComplaintStateBetween(String value1, String value2) {
            addCriterion("complaint_state between", value1, value2, "complaintState");
            return (Criteria) this;
        }

        public Criteria andComplaintStateNotBetween(String value1, String value2) {
            addCriterion("complaint_state not between", value1, value2, "complaintState");
            return (Criteria) this;
        }

        public Criteria andUserComplaintTimesIsNull() {
            addCriterion("user_complaint_times is null");
            return (Criteria) this;
        }

        public Criteria andUserComplaintTimesIsNotNull() {
            addCriterion("user_complaint_times is not null");
            return (Criteria) this;
        }

        public Criteria andUserComplaintTimesEqualTo(Byte value) {
            addCriterion("user_complaint_times =", value, "userComplaintTimes");
            return (Criteria) this;
        }

        public Criteria andUserComplaintTimesNotEqualTo(Byte value) {
            addCriterion("user_complaint_times <>", value, "userComplaintTimes");
            return (Criteria) this;
        }

        public Criteria andUserComplaintTimesGreaterThan(Byte value) {
            addCriterion("user_complaint_times >", value, "userComplaintTimes");
            return (Criteria) this;
        }

        public Criteria andUserComplaintTimesGreaterThanOrEqualTo(Byte value) {
            addCriterion("user_complaint_times >=", value, "userComplaintTimes");
            return (Criteria) this;
        }

        public Criteria andUserComplaintTimesLessThan(Byte value) {
            addCriterion("user_complaint_times <", value, "userComplaintTimes");
            return (Criteria) this;
        }

        public Criteria andUserComplaintTimesLessThanOrEqualTo(Byte value) {
            addCriterion("user_complaint_times <=", value, "userComplaintTimes");
            return (Criteria) this;
        }

        public Criteria andUserComplaintTimesIn(List<Byte> values) {
            addCriterion("user_complaint_times in", values, "userComplaintTimes");
            return (Criteria) this;
        }

        public Criteria andUserComplaintTimesNotIn(List<Byte> values) {
            addCriterion("user_complaint_times not in", values, "userComplaintTimes");
            return (Criteria) this;
        }

        public Criteria andUserComplaintTimesBetween(Byte value1, Byte value2) {
            addCriterion("user_complaint_times between", value1, value2, "userComplaintTimes");
            return (Criteria) this;
        }

        public Criteria andUserComplaintTimesNotBetween(Byte value1, Byte value2) {
            addCriterion("user_complaint_times not between", value1, value2, "userComplaintTimes");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoIsNull() {
            addCriterion("out_trade_no is null");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoIsNotNull() {
            addCriterion("out_trade_no is not null");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoEqualTo(String value) {
            addCriterion("out_trade_no =", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoNotEqualTo(String value) {
            addCriterion("out_trade_no <>", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoGreaterThan(String value) {
            addCriterion("out_trade_no >", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoGreaterThanOrEqualTo(String value) {
            addCriterion("out_trade_no >=", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoLessThan(String value) {
            addCriterion("out_trade_no <", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoLessThanOrEqualTo(String value) {
            addCriterion("out_trade_no <=", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoLike(String value) {
            addCriterion("out_trade_no like", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoNotLike(String value) {
            addCriterion("out_trade_no not like", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoIn(List<String> values) {
            addCriterion("out_trade_no in", values, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoNotIn(List<String> values) {
            addCriterion("out_trade_no not in", values, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoBetween(String value1, String value2) {
            addCriterion("out_trade_no between", value1, value2, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoNotBetween(String value1, String value2) {
            addCriterion("out_trade_no not between", value1, value2, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andComplaintTimeIsNull() {
            addCriterion("complaint_time is null");
            return (Criteria) this;
        }

        public Criteria andComplaintTimeIsNotNull() {
            addCriterion("complaint_time is not null");
            return (Criteria) this;
        }

        public Criteria andComplaintTimeEqualTo(Date value) {
            addCriterion("complaint_time =", value, "complaintTime");
            return (Criteria) this;
        }

        public Criteria andComplaintTimeNotEqualTo(Date value) {
            addCriterion("complaint_time <>", value, "complaintTime");
            return (Criteria) this;
        }

        public Criteria andComplaintTimeGreaterThan(Date value) {
            addCriterion("complaint_time >", value, "complaintTime");
            return (Criteria) this;
        }

        public Criteria andComplaintTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("complaint_time >=", value, "complaintTime");
            return (Criteria) this;
        }

        public Criteria andComplaintTimeLessThan(Date value) {
            addCriterion("complaint_time <", value, "complaintTime");
            return (Criteria) this;
        }

        public Criteria andComplaintTimeLessThanOrEqualTo(Date value) {
            addCriterion("complaint_time <=", value, "complaintTime");
            return (Criteria) this;
        }

        public Criteria andComplaintTimeIn(List<Date> values) {
            addCriterion("complaint_time in", values, "complaintTime");
            return (Criteria) this;
        }

        public Criteria andComplaintTimeNotIn(List<Date> values) {
            addCriterion("complaint_time not in", values, "complaintTime");
            return (Criteria) this;
        }

        public Criteria andComplaintTimeBetween(Date value1, Date value2) {
            addCriterion("complaint_time between", value1, value2, "complaintTime");
            return (Criteria) this;
        }

        public Criteria andComplaintTimeNotBetween(Date value1, Date value2) {
            addCriterion("complaint_time not between", value1, value2, "complaintTime");
            return (Criteria) this;
        }

        public Criteria andOperatorAdminIdIsNull() {
            addCriterion("operator_admin_id is null");
            return (Criteria) this;
        }

        public Criteria andOperatorAdminIdIsNotNull() {
            addCriterion("operator_admin_id is not null");
            return (Criteria) this;
        }

        public Criteria andOperatorAdminIdEqualTo(Integer value) {
            addCriterion("operator_admin_id =", value, "operatorAdminId");
            return (Criteria) this;
        }

        public Criteria andOperatorAdminIdNotEqualTo(Integer value) {
            addCriterion("operator_admin_id <>", value, "operatorAdminId");
            return (Criteria) this;
        }

        public Criteria andOperatorAdminIdGreaterThan(Integer value) {
            addCriterion("operator_admin_id >", value, "operatorAdminId");
            return (Criteria) this;
        }

        public Criteria andOperatorAdminIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("operator_admin_id >=", value, "operatorAdminId");
            return (Criteria) this;
        }

        public Criteria andOperatorAdminIdLessThan(Integer value) {
            addCriterion("operator_admin_id <", value, "operatorAdminId");
            return (Criteria) this;
        }

        public Criteria andOperatorAdminIdLessThanOrEqualTo(Integer value) {
            addCriterion("operator_admin_id <=", value, "operatorAdminId");
            return (Criteria) this;
        }

        public Criteria andOperatorAdminIdIn(List<Integer> values) {
            addCriterion("operator_admin_id in", values, "operatorAdminId");
            return (Criteria) this;
        }

        public Criteria andOperatorAdminIdNotIn(List<Integer> values) {
            addCriterion("operator_admin_id not in", values, "operatorAdminId");
            return (Criteria) this;
        }

        public Criteria andOperatorAdminIdBetween(Integer value1, Integer value2) {
            addCriterion("operator_admin_id between", value1, value2, "operatorAdminId");
            return (Criteria) this;
        }

        public Criteria andOperatorAdminIdNotBetween(Integer value1, Integer value2) {
            addCriterion("operator_admin_id not between", value1, value2, "operatorAdminId");
            return (Criteria) this;
        }

        public Criteria andOperatorTimeIsNull() {
            addCriterion("operator_time is null");
            return (Criteria) this;
        }

        public Criteria andOperatorTimeIsNotNull() {
            addCriterion("operator_time is not null");
            return (Criteria) this;
        }

        public Criteria andOperatorTimeEqualTo(Date value) {
            addCriterion("operator_time =", value, "operatorTime");
            return (Criteria) this;
        }

        public Criteria andOperatorTimeNotEqualTo(Date value) {
            addCriterion("operator_time <>", value, "operatorTime");
            return (Criteria) this;
        }

        public Criteria andOperatorTimeGreaterThan(Date value) {
            addCriterion("operator_time >", value, "operatorTime");
            return (Criteria) this;
        }

        public Criteria andOperatorTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("operator_time >=", value, "operatorTime");
            return (Criteria) this;
        }

        public Criteria andOperatorTimeLessThan(Date value) {
            addCriterion("operator_time <", value, "operatorTime");
            return (Criteria) this;
        }

        public Criteria andOperatorTimeLessThanOrEqualTo(Date value) {
            addCriterion("operator_time <=", value, "operatorTime");
            return (Criteria) this;
        }

        public Criteria andOperatorTimeIn(List<Date> values) {
            addCriterion("operator_time in", values, "operatorTime");
            return (Criteria) this;
        }

        public Criteria andOperatorTimeNotIn(List<Date> values) {
            addCriterion("operator_time not in", values, "operatorTime");
            return (Criteria) this;
        }

        public Criteria andOperatorTimeBetween(Date value1, Date value2) {
            addCriterion("operator_time between", value1, value2, "operatorTime");
            return (Criteria) this;
        }

        public Criteria andOperatorTimeNotBetween(Date value1, Date value2) {
            addCriterion("operator_time not between", value1, value2, "operatorTime");
            return (Criteria) this;
        }

        public Criteria andComplaintBeginTimeIsNull() {
            addCriterion("complaint_begin_time is null");
            return (Criteria) this;
        }

        public Criteria andComplaintBeginTimeIsNotNull() {
            addCriterion("complaint_begin_time is not null");
            return (Criteria) this;
        }

        public Criteria andComplaintBeginTimeEqualTo(Date value) {
            addCriterion("complaint_begin_time =", value, "complaintBeginTime");
            return (Criteria) this;
        }

        public Criteria andComplaintBeginTimeNotEqualTo(Date value) {
            addCriterion("complaint_begin_time <>", value, "complaintBeginTime");
            return (Criteria) this;
        }

        public Criteria andComplaintBeginTimeGreaterThan(Date value) {
            addCriterion("complaint_begin_time >", value, "complaintBeginTime");
            return (Criteria) this;
        }

        public Criteria andComplaintBeginTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("complaint_begin_time >=", value, "complaintBeginTime");
            return (Criteria) this;
        }

        public Criteria andComplaintBeginTimeLessThan(Date value) {
            addCriterion("complaint_begin_time <", value, "complaintBeginTime");
            return (Criteria) this;
        }

        public Criteria andComplaintBeginTimeLessThanOrEqualTo(Date value) {
            addCriterion("complaint_begin_time <=", value, "complaintBeginTime");
            return (Criteria) this;
        }

        public Criteria andComplaintBeginTimeIn(List<Date> values) {
            addCriterion("complaint_begin_time in", values, "complaintBeginTime");
            return (Criteria) this;
        }

        public Criteria andComplaintBeginTimeNotIn(List<Date> values) {
            addCriterion("complaint_begin_time not in", values, "complaintBeginTime");
            return (Criteria) this;
        }

        public Criteria andComplaintBeginTimeBetween(Date value1, Date value2) {
            addCriterion("complaint_begin_time between", value1, value2, "complaintBeginTime");
            return (Criteria) this;
        }

        public Criteria andComplaintBeginTimeNotBetween(Date value1, Date value2) {
            addCriterion("complaint_begin_time not between", value1, value2, "complaintBeginTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}